class CreateRecommendCodes < ActiveRecord::Migration
  def self.up
    create_table :recommend_codes do |t|
      t.references :user
      t.string         :code,:limit=>6
      t.timestamps
    end
  end

  def self.down
    drop_table :recommend_codes
  end
end
